package me.zhengjie.minbearwcs.dao.agv.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.agv.inf.AgvMissionHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.agv.history.AgvMissionHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.agv.history.AgvMissionHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class AgvMissionHistoryDaoImpl implements AgvMissionHistoryDao {

    private final AgvMissionHistoryMapper mapper;

    @Override
    public boolean insert(AgvMissionHistory agvMissionHistory) {
        return mapper.insert(agvMissionHistory) == 1;
    }
}
